<template>
  <div class="vote-container">
    <div
      class="vote-container-img"
      v-for="(item, index) in list"
      :key="item.id"
    >
      <image mode="widthFix" style="width: 300px" :src="item.oldImgsWz" />
    </div>
  </div>
</template>
<script setup>
import { onMounted, ref } from "vue";
import Taro from "@tarojs/taro";
const list = ref([]);
const router = Taro.useRouter();

onMounted(() => {
  console.log(router.params.list);
  list.value = JSON.parse(router.params.list);
  console.log(list.value);
});
</script>
<style lang="scss">
.vote-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px;
  box-sizing: border-box;
  .vote-container-img:nth-child(n + 2) {
    margin-top: 20px;
  }
  .vote-container-img {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
</style>
